<?php

namespace App\Providers;

use App\Models\User;
use App\Observers\UserObserver;
use App\Plugin\AliSms;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bind('sendSms', function () {
            return new AliSms();
        });
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
//        User::observe(UserObserver::class);
    }
}
